package com.security.jwt.jwtserver.service.impl;

import com.security.jwt.jwtserver.dao.UserDao;
import com.security.jwt.jwtserver.entity.dos.User;
import com.security.jwt.jwtserver.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * created by wuquan at 05/19/2021
 * ^_^ ^_^
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;


    @Override
    public User getUserByUsername(String username) {
        User user = new User();
        user.setUsername(username);
        return userDao.selectOne(user);
    }
}
